<template>
  <div>
    这是子组件
    <button @click="add">按钮</button>
    {{ value }}
  </div>
</template>

<script>
export default {
  name: 'VueHrSon',
  props: {
    value: {
      type: Number,
      required: true
    },
    aa: {
      type: Number,
      required: true
    }
  },

  data() {
    return {

    }
  },

  mounted() {

  },

  methods: {
    add() {
      this.$emit('updata:aa', this.value + 1)
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
